// This file now only exports the combined utilities
function calculatePercentile(currentScore, scores) {
    try {
        if (!scores || scores.length === 0) return 100;
        
        // Filter out the current score from the scores array to avoid including it
        const existingScores = scores.filter(score => score <= currentScore);
        const totalScores = scores.length;
        
        if (totalScores === 0) return 100;
        
        // Calculate percentile without including the current score
        return Math.round((existingScores.length / totalScores) * 100);
    } catch (error) {
        reportError(error);
        return 0;
    }
}
